home *** CD-ROM | disk | FTP | other *** search
Wrap
<%@ Language=VBScript CODEPAGE=65001 %> <!--#include file="wmssecure/include/wmsConstants.inc"--> <!--#include file="wmssecure/include/wmsLocStrings.inc"--> <!--#include file="wmssecure/include/wmsFileIO.inc"--> <!--#include file="wmssecure/include/wmsCommon.inc"--> <!--#include file="wmssecure/include/wmsError.inc"--> <!--#include file="wmssecure/include/wmsHelp.inc"--> <!--#include file="wmssecure/include/wmsHeader.inc"--> <% '+------------------------------------------------------------------------- ' ' Microsoft Windows Media ' Copyright (C) Microsoft Corporation. All rights reserved. ' ' File: default.asp ' ' Contents: ' '-------------------------------------------------------------------------- Dim g_bSecureConnection Dim g_dwBrowserType Dim g_strLocalHostWinName Dim g_bSSLDetected Dim strOp on error resume next if( "" = Session( "SSLPort" ) ) then Session( "SSLPort" ) = GetSSLPort end if g_bSSLDetected = CBool( 0 < Len( Session( "SSLPort" ) ) ) '///////////////////////////////////////////////////////////////////////////////////// Function GetSSLPort() Dim rgstrPort, strPort rgstrPort = GetSecureBindings if (IsArray( rgstrPort ) ) then strPort = rgstrPort( 0 ) else strPort = rgstrPort end if dwOffsetToColon = InStrRev( strPort, ":", -1, vbTextCompare ) if( 0 <> dwOffsetToColon ) then strPort = Left( strPort, dwOffsetToColon - 1 ) end if dwOffsetToColon = InStr( 1, strPort, ":", vbTextCompare ) if( 0 <> dwOffsetToColon ) then strPort = Right( strPort, Len( strPort ) - dwOffsetToColon ) end if GetSSLPort = strPort End Function '///////////////////////////////////////////////////////////////////////////////////// Function GetSecureBindings() on error resume next Dim objWebSite Set objWebSite = GetObject( "IIS://LocalHost/W3SVC/" & Request.ServerVariables( "INSTANCE_ID" ) ) GetSecureBindings = objWebSite.SecureBindings End Function strOp = RemoveDangerousCharacters( Left( Request.QueryString( "op" ), 10 ) ) if( 0 = StrComp( strOp, "logoff", vbTextCompare ) ) then Response.Redirect( "WMSLogOff.asp?close=1" ) Response.Flush Response.End end if if( 0 < Len( Request.QueryString( "lhwn" ) ) ) then Session( "LocalHostWinName" ) = Request.QueryString( "lhwn" ) end if g_strLocalHostWinName = Session( "LocalHostWinName" ) g_bSecureConnection = CBool( 0 = StrComp( "on", Request.ServerVariables( "HTTPS" ), vbTextCompare ) ) g_dwBrowserType = brMSIE SyncWithApplicationState BrowserSniff PickStyleSheet RedirectIfLegacyBrowser '//////////////////////////////////////////////////////////////// Function CreateSSLConnectString() Dim strLink Dim strServerName strServerName = Request.ServerVariables( "SERVER_NAME" ) strLink = "" strLink = "https://" & strServerName & ":" & Session( "SSLPort" ) & "/default.asp" CreateSSLConnectString = Replace( Server.HTMLEncode( L_SSLDETECTED_TEXT ), "___", "<a class=" & chr(34) & "warnlink" & chr(34) & " href=" & chr(34) & strLink & chr(34) & "><span class=" & chr(34) & "warnlink" & chr(34) & ">" & strLink & "</span></a>", 1 ) End Function '/////////////////////////////////////////////////////////////////////////// ' Start writing to the output stream '/////////////////////////////////////////////////////////////////////////// WriteHTMLHeader( L_WMSWEBADMINTITLE_TEXT ) Dim strLinkToIcon if( g_bSecureConnection ) then strLinkToIcon = "https://" else strLinkToIcon = "http://" end if strLinkToIcon = strLinkToIcon & Request.ServerVariables( "SERVER_NAME" ) if( 0 >= InStr( 1, Request.ServerVariables( "SERVER_NAME" ), ":", vbTextCompare ) ) then strLinkToIcon = strLinkToIcon & ":" & Request.ServerVariables( "SERVER_PORT" ) end if strLinkToIcon = strLinkToIcon & "/img/WMSWebApp.ico" %> <LINK REL="SHORTCUT ICON" HREF="<%= strLinkToIcon %>"/> <LINK rel="stylesheet" type="text/css" href="wmsStyles.css"/> <script language="JavaScript"> <!-- /*@cc_on @*/ document.onmouseup=""; var g_dwNumHelpLoadAttempts; var g_szLocalHostWinName = "<%= g_strLocalHostWinName %>"; g_dwNumHelpLoadAttempts = 0; /////////////////////////////////////////////////////////////////////// function RecordLocalHostWinName( szWinName ) { /*@if (@_jscript_version >= 1.3) try { @end @*/ if( g_szLocalHostWinName == szWinName ) { return; } g_szLocalHostWinName = szWinName; /*@if (@_jscript_version >= 1.3) } catch( error ) { return; } @end @*/ } /////////////////////////// function FileFromPath( szPath ) { var dwLastPosOfSlash = 0; var dwPosOfSlash = 0; var szPathStr = new String( szPath ); dwPosOfSlash = szPathStr.lastIndexOf( "/" ); return( szPathStr.slice( dwPosOfSlash + 1 ) ); } /////////////////////////// function EatHelpCookie( szTopic ) { /*@if (@_jscript_version >= 1.3) try { @end @*/ var cookieParent = null; if( ( null == g_winHelp ) || ( 2 > g_winHelp.frames.length ) ) { return; // cookieParent = window.document; } else { cookieParent = g_winHelp.document; } var expiredDate = new Date(); expiredDate.setMinutes( expiredDate.getMinutes() - 2 ); var szCurrentTopic = document.location.protocol + "//" + document.location.hostname + ":" + document.location.port + szTopic; cookieParent.cookie = "helpTreeActiveTopic=; expires=" + expiredDate.toUTCString() + "; secure=false;"; cookieParent.cookie = "helpTreeActiveURL=; expires=" + expiredDate.toUTCString() + "; secure=false;"; // cookieParent.cookie = "helpTreeOpenNodes=; expires=" + expiredDate.toUTCString() + "; secure=false;"; var newDate = new Date(); newDate.setUTCDate( newDate.getUTCMinutes() + 15 ); cookieParent.cookie = "helpTreeActiveURL=" + szTopic + "; expires=" + newDate.toUTCString() + ";"; /*@if (@_jscript_version >= 1.3) } catch( error ) { if( g_bDebugMode ) { throw( error ); } } @end @*/ } /////////////////////////////////////////////////////////////////////// function LoadHelpTopic( szTopic ) { /*@if (@_jscript_version >= 1.3) try { @end @*/ if( null == g_winHelp ) { return; } var dwNumFrames = 0; var mainFrame = null; dwNumFrames = g_winHelp.frames.length; mainFrame = g_winHelp.frames[ "main" ]; if( ! mainFrame ) { if( g_dwNumHelpLoadAttempts < 3 ) { g_dwNumHelpLoadAttempts = g_dwNumHelpLoadAttempts + 1; var szOperation; szOperation = "LoadHelpTopic( " + "'" + szTopic + "'" + ");"; setTimeout( szOperation, 500, "JavaScript" ); } return; } mainFrame.location.replace( szTopic ); if( FileFromPath ( mainFrame.location.pathname ) != FileFromPath ( szTopic ) ) { if( "default.htm" == FileFromPath ( mainFrame.location.pathname ) ) { mainFrame.location.replace( szTopic ); } else { mainFrame.location = szTopic; } var szOperation = "LoadHelpTopic( " + "'" + szTopic + "'" + ");"; setTimeout( szOperation, 400, "JavaScript" ); } <% if( brMSIE = g_dwBrowserType ) then %> else { if( mainFrame.SynchToc ) { mainFrame.SynchToc(); } } <% end if %> /*@if (@_jscript_version >= 1.3) } catch( error ) { return; } @end @*/ } /////////////////////////////////////////////////////////////////////// function TellSessionFrameToAbandon() { /*@if (@_jscript_version >= 1.3) try { @end @*/ if( window.location == window.parent.location ) { return; } var sessionFrame = null; if( window.parent && window.parent.frames ) { sessionFrame = parent.frames[ "WMSSession" ]; } if( sessionFrame ) { sessionFrame.location.replace( sessionFrame.location + "&logoff=true" ); return; } /*@if (@_jscript_version >= 1.3) } catch( error ) { return; } @end @*/ } /////////////////////////////////////////////////////////////////////// function LogOff() { /*@if (@_jscript_version >= 1.3) try { @end @*/ if( window.confirm( "<%= RemoveDangerousCharacters( L_LOGOFFCONF_TEXT ) %>" ) ) { if( window.parent.location == document.location ) { document.location.replace( "default.asp?op=logoff" ); } else { TellSessionFrameToAbandon(); window.parent.location = "/wmssecure/index.asp?op=logoff"; } } /*@if (@_jscript_version >= 1.3) } catch( error ) { return; } @end @*/ } var g_winHelp = null; /////////////////////////////////////////////////////////////////////// function DoHelp( szNesting, szTopic ) { /*@if (@_jscript_version >= 1.3) try { @end @*/ if( document.pluginForm && document.pluginForm.help ) { document.pluginForm.help.disabled = true; } var szFeatures = "location,hotkeys,scrollbars,status,resizable,menubar,toolbar"; var szBaseHelpURL = szNesting; g_winHelp = window.open( "", "HELP", szFeatures, false ); EatHelpCookie( szTopic ); <% if( brMSIE = g_dwBrowserType ) then %> if( ( null == g_winHelp ) || ( 3 != g_winHelp.frames.length ) || ( null == g_winHelp.frames[ "treebody" ] ) || ( null == g_winHelp.frames[ "treesrc" ] ) || ( null == g_winHelp.frames[ "main" ] ) ) <% else %> if( ( null == g_winHelp ) || ( 2 != g_winHelp.frames.length ) || ( null == g_winHelp.frames[ "main" ] ) ) <% end if %> { g_winHelp = window.open( szNesting + "help/default.htm", "HELP", szFeatures, true ); } if( g_winHelp ) { EatHelpCookie( szTopic ); // g_winHelp.document.SetDefaultOpenTreeNodes(); // g_winHelp.document.InitTree(); g_winHelp.name = "HELP"; g_winHelp.focus(); LoadHelpTopic( szTopic ); if( document.pluginForm && document.pluginForm.help ) { document.pluginForm.help.disabled = false; } } /*@if (@_jscript_version >= 1.3) } catch( error ) { return; } @end @*/ } ////////////////////////////////////////////////////////////////////////// function Proceed( bShowServerList ) { /*@if (@_jscript_version >= 1.3) try { @end @*/ <% if( brMSIE = g_dwBrowserType ) then %> if( bShowServerList ) { window.parent.top.location.replace( "/wmssecure/index.asp" ); }<% else %> if( bShowServerList ) { parent.document.location.replace( "/wmssecure/index.asp" ); }<% end if %> else { var win = null; var szFeatures = "hotkeys,scrollbars,status,menubar,resizable"; //,location"; var bReplace = true; var szUrl; szUrl = "/wmssecure/admin.asp?srv=localhost&showSL=false"; win = window.open( szUrl, g_szLocalHostWinName, szFeatures, true ); if( win ) { win.focus(); } } /*@if (@_jscript_version >= 1.3) } catch( error ) { return; } @end @*/ } ////////////////////////////////////////////////////////////////////////// function LoadHandler() { /*@if (@_jscript_version >= 1.3) try { @end @*/ window.name = "sList"; <% if brMSIE = g_dwBrowserType then %> window.MainDiv.style.cursor = "Auto"; <% else %> window.zlock = true; <% end if %> window.focus(); /*@if (@_jscript_version >= 1.3) } catch( error ) { return; } @end @*/ } --> </script> </head> <body oncontextmenu="JavaScript:event.cancelBubble=true;return false;" bgcolor="#6699FF" topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0" marginwidth="0" marginheight="0" nowrap height="100%" width="100%" onload="JavaScript:LoadHandler();"> <div id="MainDiv"> <form name="mainFrm"> <table bgcolor="#6699FF" cellspacing="0" cellpadding="0" border="0" style="border-collapse:collapse" height="100%" width="100%"><tr><td> <table width="760" bgcolor="#6699FF" class="splashtable" align="center" valign="middle" cellspacing="0" cellpadding="0" border="0" style="border-collapse:collapse" > <tr height="1" align="left"><td bgcolor="gray" width="760" height="1"></td></tr> <tr align="left"> <td> <table align="left" background="img/backgroundSlice1Anon<% if g_bSecureConnection then %>Secure<% end if %>.gif" no-repeat class="splashtable" height="150" width="760" cellspacing="0" cellpadding="0" border="0" style="border-collapse:collapse" margin-bottom="0" margin-top="0"> <tr valign="top"> <td align="right" valign="top" colspan="2"> <table border="0" cellspacing="0" cellpadding="0"> <tr valign="top"> <td valign="top"> <img src="img/WMSTransparent.gif" width="60" height="110" border="0" alt=""> <span class="admintext" nowrap> <%= SpacesToNonbreak( Server.HTMLEncode( L_SECSETTINGS_TEXT ) ) %> </span> </td> <td align="right" width="66"> <img src="img/WMSTransparent.gif" width="80" height="110" border="0" alt=""> </td> </tr> </table> </td> </tr> <tr> <td align="left" valign="bottom" width="<% if ( brMSIE = g_dwBrowserType ) then %>6<% else %>156<% end if %>"> </td> <td align="left" valign="bottom"> <table border="0" cellspacing="0" cellpadding="0"> <tr> <td> <img src="img/WMSTransparent.gif" width="<% if ( brMSIE = g_dwBrowserType ) then %>154<% else %>12<% end if %>" height="10" border="0" alt=""><span class="helptext"><%= L_CHECKSEC_TEXT %></span> </td> </tr> </table> </td> </tr> </table> </td> </tr> <tr align="left" valign="top"> <td> <table align="left" valign="top" class="splashtable" width="760" cellspacing="0" cellpadding="0" border="0" style="border-collapse:collapse" margin-bottom="0" margin-top="0" margin-right="1"> <tr valign="top"> <td background="img/backgroundSlice4Anon.gif" no-repeat height="255" margin-top="0" width="150" valign="top" nowrap> <img src="img/WMSTransparent.gif" height="6" width="1" border="0"> <!-- Nested Table for Toolbar Style Buttons--> <table align="left" valign="top" width="150" cellspacing="6" cellpadding="4" border="0" margin-bottom="0" margin-top="0"> <tr align="center"><td><a oncontextmenu="JavaScript:event.cancelBubble=true;return false;" href="JavaScript:DoHelp('/','<%= H_SERVERLISTHELPTOPIC %>');" tabindex=3><img src="img/AnonHelp_32.gif" width=32 height=32 border="0" alt="<%= Server.HTMLEncode( L_HELPBUTTONALT_TEXT ) %>"><br/><%= SpacesToNonbreak( Server.HTMLEncode( L_HELP_TEXT ) ) %></a></td></tr> <tr align="center"><td><a oncontextmenu="JavaScript:event.cancelBubble=true;return false;" href="JavaScript:LogOff();" tabindex=1><img src="img/WMSLogoff_32.jpg" width="32" height="32" border="0" alt="<%= Server.HTMLEncode( L_LOGOFFALT_TEXT ) %>"><br/><%= SpacesToNonbreak( Server.HTMLEncode( L_LOGOFFBTN_TEXT ) ) %></a></td></tr> </table> </td> <td background="img/backgroundAnon<% if g_bSecureConnection then %>Secure<% end if %>.gif" no-repeat width="610" nowrap> <table cellspacing="0" cellpadding="0" border="0"> <tr> <td width="16"> </td> <td bgcolor="white" valign="middle" height="24"><% if( g_bSecureConnection ) then %> <span align="left" class="SSLCheckText" valign="middle"> <%= Response.Write( Server.HTMLEncode( L_SSLENABLED_TEXT ) ) %> </span><% else %> <table cellpadding="0" cellspacing="1" border="0"> <tr> <td width="24"> <img src="img/AnonNotSecure_24.gif" alt="" height="24" width="24" border="0"> </td> <td width="6"> <img src="img/WMSTransparent.gif" alt="" height="1" width="6" border="0"> </td> <td class="SSLCheckText"> <%= Server.HTMLEncode( L_SSLNOTEN_TEXT ) %> </td> </tr> </table><% end if %> </td> </tr> <tr> <td> </td> <td> <img src="img/WMSTransparent.gif" height="6" width="1" border="0"> <table cellspacing="0" cellpadding="0" border="0"> <tr> <td> <table cellspacing="0" cellpadding="0" border="0"> <tr> <td valign="top"> <img src="img/wmsroundinfo_16.gif" height="16" width="16" border="0" alt=""> </td> <td> </td> <td> <span class="helptext"><% if g_bSecureConnection then Response.Write( Server.HTMLEncode( L_PROCEEDLOCALSSLHLP_TEXT ) ) else Response.Write( Server.HTMLEncode( L_RECOMMENDSEC_TEXT ) ) end if %></span> </td> </tr> </table> </td> </tr> </table> <% if g_bSecureConnection then %> <table cellspacing="2" cellpadding="2" border="0"> <tr> <td width="18"> </td> <td> <a oncontextmenu="JavaScript:event.cancelBubble=true;return false;" href="JavaScript:Proceed( false );"><%= L_PROCEEDLOCALSSL_TEXT %></a> </td> </tr> </table> </td> </tr> <tr> <td> </td> <td> <img src="img/WMSTransparent.gif" height="6" width="1" border="0"> <table cellspacing="0" cellpadding="0" border="0"> <tr> <td> <table cellspacing="0" cellpadding="0" border="0"> <tr> <td valign="top"> <img src="img/wmswarn_16.gif" height="16" width="16" border="0" alt=""> </td> <td> </td> <td> <span class="helptext"><%= Server.HTMLEncode( L_PROCEEDDISTSSLHLP1_TEXT ) %><a oncontextmenu="JavaScript:event.cancelBubble=true;return false;" href="JavaScript:DoHelp( '','<%= H_SSLHELPTOPIC %>' );"><%= Server.HTMLEncode( L_SECURITYREASONS_TEXT ) %> <img align="absmiddle" src="img/helpdoc_16.gif" height="16" width="16" border="0"></a><%= Server.HTMLEncode( L_PROCEEDDISTSSLHLP2_TEXT ) %></span> </td> <td> </td> </tr> </table> </td> </tr> </table> <table cellspacing="2" cellpadding="2" border="0"> <tr> <td width="18"> </td> <td> <a oncontextmenu="JavaScript:event.cancelBubble=true;return false;" href="JavaScript:Proceed( true );"><%= Server.HTMLEncode( L_PROCEEDDISTSSL_TEXT ) %></a> </td> </tr> </table> </td> </tr> <% else %> <table cellspacing="2" cellpadding="2" border="0"> <tr> <td width="18"> </td> <td> <a oncontextmenu="JavaScript:event.cancelBubble=true;return false;" href="JavaScript:DoHelp( '','<%= H_SSLHELPTOPIC %>' );"><%= Server.HTMLEncode( L_ENABLESSL_TEXT ) %> <img align="absmiddle" src="img/helpdoc_16.gif" height="16" width="16" border="0"></a> </td> </tr> </table> </td> </tr> <tr> <td> </td> <td> <img src="img/WMSTransparent.gif" height="6" width="1" border="0"> <table cellspacing="0" cellpadding="0" border="0"> <tr> <td> <table cellspacing="0" cellpadding="0" border="0"> <tr> <td valign="absmiddle"> <img src="img/wmswarn_16.gif" height="16" width="16" border="0" alt=""> </td> <td valign="absmiddle"> </td> <td valign="absmiddle"> <span class="helptext" valign="absmiddle"><% if( brMSIE = g_dwBrowserType ) then Response.Write( Server.HTMLEncode( L_PROCEEDNOSSL_TEXT ) ) else Response.Write( Server.HTMLEncode( L_PROCEEDNOSSLNS_TEXT ) ) end if %></span> </td> </tr> </table> </td> </tr> </table> <table cellspacing="2" cellpadding="2" border="0"> <tr> <td width="18"> </td> <td> <a <% if( FALSE = g_bLocalHostRunningWMS ) then %> style="color:gray" <% end if %> oncontextmenu="JavaScript:event.cancelBubble=true;return false;" href="JavaScript:Proceed( false );"><%= Server.HTMLEncode( L_PROCEEDNOTREC_TEXT ) %></a> </td> </tr> <tr> <td width="18"> </td> <td> <a oncontextmenu="JavaScript:event.cancelBubble=true;return false;" href="JavaScript:Proceed( true );"><%= Server.HTMLEncode( L_PROCEEDTOSLNOTREC_TEXT ) %></a> </td> </tr> </table> </td> </tr> <% end if %> </table> </td> </tr> </table> </td> </tr> <tr align="center" valign="top"> <td> <table align="center" valign="top" class="splashtable" width="760" cellspacing="0" cellpadding="0" border="0" style="border-collapse:collapse;border-left:1px ridge;border-right:1px groove;border-bottom:0px;border-color:silver" margin-bottom="0" margin-top="0"> <tr valign="top"> <td bgcolor="gray" colspan="2" height="1"></td> </tr> <tr> <td background="img/bottomstripAnon<% if g_bSecureConnection then %>Secure<% end if %>.gif" no-repeat colspan="2" height="24" width="<% if g_bSecureConnection then %>758<% else %>759<% end if %>" valign="top" nowrap valign="middle"><% if g_bSecureConnection then %> <table cellspacing="0" cellpadding="0" height="24" width="100%" hspace="0" vspace="0"> <tr valign="middle"> <td> <table cellpadding="1" cellspacing="0" border="0"> <tr> <td> </td> <td nowrap align="absmiddle"> <img border="0" valign="middle" height="24" width="24" alt="<%= Server.HTMLEncode( L_SECURECONNECTION_TEXT ) %>" src="img/AnonSecure_24.gif"> </td> <td> <span class="defaultcursor"> </span> </td> <td nowrap valign="middle"> <span title="<%= Server.HTMLEncode( L_SECURECONNECTION_TEXT ) %>" class="warntext" style="cursor:default;color:black" valign="middle" href="http://<%= Request.ServerVariables( "HTTP_HOST" ) %>/default.asp" target="sList" border="0"> <% if ( brMSIE <> Session( "BrowserType" ) ) then %><font color="#ff0000"><% end if %><%= Server.HTMLEncode( L_SECURECONNECTION_TEXT ) %><% if( brMSIE <> Session( "BrowserType" ) ) then %></font><% end if %> </span> </td> </tr> </table> </td> </tr> </table> <% else if g_bSSLDetected then %> <table cellspacing="0" cellpadding="0" height="24" width="100%" hspace="0" vspace="0"> <tr valign="middle"> <td> <table cellpadding="1" cellspacing="0" border="0"> <tr> <td> </td> <td nowrap align="absmiddle"> <img border="0" valign="middle" height="16" width="16" alt="<%= Server.HTMLEncode( L_SECURECONNECTION_TEXT ) %>" src="img/wmstip_16.gif"> </td> <td> <span class="defaultcursor"> </span> </td> <td nowrap valign="middle"> <span style="cursor:default;color:black" class="warntextsm" valign="middle" href="http://<%= Request.ServerVariables( "HTTP_HOST" ) %>/default.asp" target="sList" border="0"> <% if ( brMSIE <> Session( "BrowserType" ) ) then %><font color="#ff0000"><% end if %><%= CreateSSLConnectString %><% if( brMSIE <> Session( "BrowserType" ) ) then %></font><% end if %> </span> </td> </tr> </table> </td> </tr> </table> <% end if end if %> </td> </tr> <tr> <td bgcolor="gray" colspan="2" height="1"></td> </tr> </table> </td> </tr> <tr align="center"><td bgcolor="gray" width="760" height="1"></td></tr> </table> <br/><p/><br/> </td></tr></table> </form> </div> <script FOR="window" EVENT="onBlur" language="JavaScript"> <% if( brMSIE = g_dwBrowserType ) then %> window.blur(); <% end if %> </script> </body> </html> <% if( 0 = StrComp( strOp, "logoff", vbTextCompare ) ) then Session.Abandon end if %>